﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MVCDemo.Controllers
{
    public class ActionFiltersController : Controller
    {
        [Authorize]
        public ActionResult SecureMethod()
        {
            return View();
        }

        public ActionResult NonSecureMethod()
        {
            return View();
        }

        [ChildActionOnly]
        public ActionResult Countries(List<string> countryNames)
        {
            return View(countryNames);
        }

        public ActionResult Index()
        {
            return View();
        }
    }
}
